//
//  TYZBaseViewModel.m
//  DriveSchoolCoach
//
//  Created by TangBin on 2019/7/4.
//  Copyright © 2019 TangBin. All rights reserved.
//

#import "TYZBaseViewModel.h"

@interface TYZBaseViewModel ()
/**
 navItem.title
 */
//@property (nonatomic ,copy, readwrite) NSString *title;

@property (nonatomic, strong, readwrite) RACSubject *errors;
@end

@implementation TYZBaseViewModel
- (instancetype)init
{
    if (self = [super init])
    {
        [self initialize];
    }
    return self;
}

- (void)initialize
{
    _dataList = [[NSMutableArray alloc] initWithCapacity:0];
    _pageId = 1;
    _pageSize = 20;
}

- (RACSubject *)errors
{
    if (!_errors)
    {
        _errors = [RACSubject subject];
    }
    return _errors;
}
- (void)setupData
{
    
}


/**
 保存记录
 */
//- (void)appStudentOperatingSystem
//{
//    EDSAppStudentOperatingSystemRequest *request = [EDSAppStudentOperatingSystemRequest requestWithSuccessBlock:nil failureBlock:nil];
//    request.phone = [EDSSave account].phone;
//    request.operatingSystem = @"iOS";
//    [request startRequest];
    
    
//}

- (void)sendResponseObject:(id)rspObj completion:(RequestCompletionBlock)completion
{
    if (completion)
    {
        completion(rspObj);
    }
}
@end
